package com.principle.singleresponsibility;

/**
 * @author mxs
 */
public class Responsibility3 {
    public static void main(String[] args) {
        Vehicle3 vehicle3 = new Vehicle3();
        vehicle3.run("car");
        vehicle3.fly("plane");
    }
}

class Vehicle3 {
    public void run(String vehicle) {
        System.out.println(vehicle + " can run");
    }

    public void fly(String vehicle) {
        System.out.println(vehicle + " can fly");
    }
}
